<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$postdata=get_postdata();

$chatmsg = trim($postdata['msg']);
$robotdata =array(
	'nickname'=>'机器人',
	'mid'=>$_SESSION['uid'],
	'createtime'=>TIMESTAMP +1,
	'msg'=>$msg,
	'uniacid' => $_SESSION['uniacid'],
	'chatid' => intval($postdata['chatid']),
	'type' =>1,
);
pdo_insert('jy_aixiaoyi_msglog',$robotdata);
$return['error'] = 0;
$return['msg'] = $msg;
exi($return);